<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" Title="Prueba de C#" CodeFile="~/Vista/BuscarGastos.aspx.cs" Inherits="MasterPage2"%>

<%@ MasterType TypeName="MasterPage" %>

<asp:content id="Content1" contentplaceholderid="principal" runat="server">

      
                
  
    <table border="0" cellspacing="0" class="fondo_azul">
        <tr>
            <td class="campos_formulario">
                Buscar Gasto:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="Valida" runat="server" 
                    ControlToValidate="TextBox1" InitialValue=" ">Introduzca Parametro</asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
            <td class="obligatorio">
                *</td>
        </tr>
        <tr>
            <td align="center" colspan="3" style="height:50px;">
                &nbsp;<asp:Button ID="Buscar" runat="server" class="botones" onclick="Buscar_Click" 
                    Text="Buscar" />
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" BackColor="White" BorderColor="#3366CC" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="4" PageSize="5" 
                    style="font-size: x-small">
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <Columns>
                        <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" 
                            SortExpression="Descripcion" />
                        <asp:BoundField DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha" />
                        <asp:HyperLinkField DataNavigateUrlFields="ID" 
                            DataNavigateUrlFormatString="ConsultarGasto.aspx?ID={0}" DataTextField="ID" 
                            DataTextFormatString="Ver Detalle" Text="Detalle" />
                        <asp:HyperLinkField DataNavigateUrlFields="ID" 
                            DataNavigateUrlFormatString="ModificarGastos.aspx?ID={0}" DataTextField="ID" 
                            DataTextFormatString="Modificar" Text="Modificar" />
                    </Columns>
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                </asp:GridView>
            </td>
        </tr>
    </table>

      
                
  
</asp:content>



